/**
 * AddInstruction(a,b).act() => a=a+b
 * @author Patrik
 */
public class AddInstruction implements InstructionInterface {

	IntWrapper param1;
	IntWrapper param2;
	
	public AddInstruction(IntWrapper a,IntWrapper b){
		param1=a;
		param2=b;	
	}
	
	/**
	 *
	 */
	public Integer act() {
		param1.set(param1.get()+param2.get());
		return null;
	}

}
